# Contributor: Maxim Karasev <mxkrsv@disroot.org>
# Maintainer:
pkgname=nvim-cmp-cmdline
pkgver=0.0.0_git20220902
_commit=d1a96c21e53316e1e21571dcce529c68720b0cf9
pkgrel=1
pkgdesc="nvim-cmp source for vim cmdline"
url="https://github.com/hrsh7th/cmp-cmdline"
arch="noarch"
license="MIT"
subpackages="$pkgname-doc"
depends="nvim-cmp"
source="https://github.com/hrsh7th/cmp-cmdline/archive/$_commit/nvim-cmp-$pkgver.tar.gz"
builddir="$srcdir/cmp-cmdline-$_commit"
options="!check" # no tests

package() {
	install -d "$pkgdir"/usr/share/nvim/site
	cp -ra after lua "$pkgdir"/usr/share/nvim/site
	install -Dm644 README.md "$pkgdir"/usr/share/doc/$pkgname/README.md
}

sha512sums="
326c6939947706d4f9de3dfde6fcdf83e17c93601553c60860c6fcc38566c50b7c90a5b08c4074fa5dfabedc938d3ed2e152e4b059bfba1b98df63f9a15d56b9  nvim-cmp-0.0.0_git20220902.tar.gz
"
